
<%layout("../layout/_layout.html",{title:'管理员列表页面'}){ %>

          <section id="main" class="clearfix">
                        	<div id="main-header" class="page-header">
                            	<ul class="breadcrumb">
                                	<li>
                                    	<i class="icon-home"></i>首页
                                        <span class="divider">&raquo;</span>
                                    </li>
                                    <li>
                                    	<a href="#">用户管理</a>
                                        <span class="divider">&raquo;</span>
                                    </li>
                                    <li>
                                    	<a href="#">管理员列表</a>
                                    </li>
                                </ul>
                                
                                <h1 id="main-heading">
                                	管理员用户 <span>显示所有的管理员用户列表信息。</span>
                                </h1>
                            </div>
                            <div id="main-content">
                            <form method="post" action="/system/role/user" class="form-horizontal">
                            
                            <!-- 查询表单  -->
                         	 <div class="row-fluid" style="margin-bottom: 10px">
		                           <div class="row-fluid">
		                       	 姓名:<input type="text" placeholder="可以填写用户的真实姓名" id="input00" class="span3">
                                                                                账户:<input type="text" value="${admin.username!}" placeholder="用户的登录账户" name="admin.username" id="admin.username" class="span3">
                                           <button type="submit" class="btn btn-default " ><i class="icon-search"></i>搜索</button>                    
		                           </div>
		                           
		    
                            </div>
                  
                     	<!-- 查询面板结束  -->
                        <!--  内容开始  -->
								 <div class="widget">
                                            <div class="widget-header">
                                                <span class="title">
                                                    <i class="icol-table"></i> 管理员列表信息
                                                </span>
                                                <div class="toolbar">
                                                    <div class="btn-group">
                                                        <a href="/system/role/user/add_edit"  id="addbtn" class="btn" >
                                                         	<i class="icol-add"></i> 添加用户
                                                        </a>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="widget-content table-container">
                                                <table class="table table-striped">
                                                    <thead>
                                                        <tr>
                                                            <th>用户ID</th>
                                                            <th>用户名</th>
                                                            <th>姓名</th>
                                                            <th>权限组</th>
                                                             <th>状态</th>
                                                            <th></th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                   <%for(admin in data.list!){ %>
                                                     <tr>
                                                            <td>${admin.id}</td>
                                                            <td>${admin.username}</td>
                                                            <td>${admin.name}</td>
                                                            <td>${admin.role_name}</td>
                                                            <%
																															if(admin.state==0){
																															print("<td><span class='badge badge-success'>正常</span></td>");
																															}else{
																															print("<td><span class='badge badge-warning'>禁用</span></td>");
																															}
																															%>
                                                            <td class="action-col">
															<%  if(admin.username!="admin"){ %>	
																<span class="btn-group">
                                                                  <!--   <a href="/system/role/user/add_edit/info/${admin.id}" class="btn btn-small"><i class="icon-search"></i></a> -->
                                                                    <a href="/system/role/user/add_edit/${admin.id}" class="btn btn-small"><i class="icon-pencil"></i></a>
                                                                    <a href="javascript:gx.del('/system/role/user/delete/${admin.id}')" class="btn btn-small"><i class="icon-trash"></i></a>
                                                                </span>
                                                            </td>
                                                        </tr>
														<%}%>
												   <%}%>
                                                      
                                                    </tbody>
                                                </table>
                                                <%include("/jsp/_paginate.html"){}%>
                                            </div>
                                        </div>
                                <!-- 结束  -->
                            </div>
                            	</form>
                        </section>
 
        
<%}%>
<script>
$(function(){
	$("#usertype").val("${admin.usertype!}");
	$("#cityid").val("${admin.cityid!}");
})
</script>